<?php

namespace app\plugins\controller;

class captcha {
    function index() {
        $_captcha = new \core\libs\captcha();
        $_captcha->outImage();
        $_SESSION["CAPTCHA"] = $_captcha->code; 
    }

    function old() {
        $_captcha = new \core\libs\captcha_old();
        $_captcha->outImage();
        $_SESSION["CAPTCHA"] = $_captcha->code; 
    }
}